<%@ page import="java.sql.*, javax.sql.*, javax.naming.*" %>
<%@page import="support.*, java.util.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

    <%
    
      // get user input and location from request
      String university = request.getParameter("university");
      String location = request.getParameter("location");
      ArrayList<String> universities = (ArrayList<String>)request.getSession(false).getAttribute("universities");
      
      // if users university is already in the list, print out error
      if(universities.contains(university) || universities.contains(university+" ")){
          out.print("<b><u>"+ university + "</u></b> is already listed below!");
      }
      
    %>
